package com.imoney.framework.web.context;

import javax.servlet.ServletContext;

import org.springframework.web.context.ConfigurableWebApplicationContext;

/**
 * 
 * Description:
 * <BR>
 * 
 * @author robin wu
 * CreateTime: Jul 2, 2010
 */
public class ContextLoader extends org.springframework.web.context.ContextLoader {	
	
	public void customizeContext(
			ServletContext servletContext, ConfigurableWebApplicationContext applicationContext) {		

		String contextConfigLocation =null;
		if(servletContext!=null){
			contextConfigLocation=servletContext
				.getInitParameter(CONFIG_LOCATION_PARAM);
		}
		
		InitResouece.getConfigLocations(contextConfigLocation);		
		String[] configLocations = InitResouece.getConfigLocations(contextConfigLocation);		
		applicationContext.setConfigLocations(configLocations);

		
		

	}

}
